using System.Configuration;

namespace SaJiraSync.Config.Closer
{
    public class CloserSection : ConfigurationSection
    {
        [ConfigurationProperty("searches", IsRequired = false, IsDefaultCollection = true)]
        [ConfigurationCollection(typeof(SearchesElementCollection), AddItemName = "search")]
        public SearchesElementCollection Searches
        {
            get
            {
                return (SearchesElementCollection)this["searches"];
            }
        }

        [ConfigurationProperty("prefix", IsRequired = true)]
        public PrefixElement Prefix
        {
            get
            {
                return (PrefixElement)this["prefix"];
            }
        }
    }
}
